package org.example.configbean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DemoConfig {
    @Data
    public class Demo {
        @Value("    法外狂徒")
        private String name;
    }

    @Bean(name = "testConfig")
    public Demo getConfig() {
        return new Demo();
    }

}
